package vo;

import java.util.List;

import po.ModelPO;

public class ModelVO {
	ModelPO model;
	List<SubModelVO>	subModelList;
	
	public ModelVO(ModelPO model, List<SubModelVO> subModelList) {
		super();
		this.model = model;
		this.subModelList = subModelList;
	}
	public ModelPO getModel() {
		return model;
	}
//	public List<SubModelVO> getSubModelList() {
//		return subModelList;
//	}
	public SubModelVO getSubModel(String submodelID){
		for(SubModelVO smv : subModelList){
			if(smv.getSubModel().getSubModelID().equals(submodelID)){
				return smv;
			}
		}
		return null;
	}
}
